export default async function({ width, height }) {await new Promise(resolve => setTimeout(resolve, 2000));
  console.log(`[KXD] 狭缝设置: ${width}×${height} mm`);
  return { width, height };
}

export const meta = {
  name: "设置入射狭缝",
  parameters: [
    {
      name: "width",
      type: "number",
      defaultValue: 1.0,
      unit: "mm",
      description: "狭缝宽度"
    },
    {
      name: "height",
      type: "number",
      defaultValue: 1.0,
      unit: "mm",
      description: "狭缝高度"
    }
  ]
};